home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / contrib / dvx / demos / ico / objocta.h < prev    next >
Encoding:
Text File  |  1993-07-15  |  737 b   |  30 lines

  1. /* objocta.h - structure values for octahedron */
  2.  
  3. {    "octahedron", "octa",    /* long and short names */
  4.     "cube",        /* long name of dual */
  5.     6, 12, 8,    /* number of vertices, edges, and faces */
  6.     {        /* vertices (x,y,z) */
  7.             /* all points must be within radius 1 of the origin */
  8. #define T 1.0
  9.         {  T,  0,  0 },
  10.         { -T,  0,  0 },
  11.         {  0,  T,  0 },
  12.         {  0, -T,  0 },
  13.         {  0,  0,  T },
  14.         {  0,  0, -T },
  15. #undef T
  16.     },
  17.     {    /* faces (numfaces + indexes into vertices) */
  18.         /*  faces must be specified clockwise from the outside */
  19.         3,    0, 4, 2,
  20.         3,    0, 2, 5,
  21.         3,    0, 5, 3,
  22.         3,    0, 3, 4,
  23.         3,    1, 2, 4,
  24.         3,    1, 5, 2,
  25.         3,    1, 3, 5,
  26.         3,    1, 4, 3,
  27.     }
  28. },        /* leave a comma to separate from the next include file */
  29. /* end */
  30.